<template>
	<view>
	<scroll-view style="height:100vh" scroll-y="true">
		<view class="highlights">品牌主页{{listdata.length}}大亮点</view>
		<view class="auth-item" :style="{background:item.bgcolor}" v-for="(item,index) in listdata" :key="index">
			<view class="preview">
				<image :src="item.img"></image>
			</view>
			<view class="content" :style="{color:item.textcolor}">
				<view class="title">{{index+1}}.{{item.title}}</view>
				<view class="desc">{{item.desc}}</view>
			</view>
		</view>
		<view style="height: 150rpx;"></view>
	</scroll-view>
	<view class="bottom">
		<view class="button" @click="gotoOpening">限时免费开通</view>
	</view>
	</view>
</template>

<script>
	/**
	 * 品牌填写入口页
	 */
	export default{
		data(){
			return{
				listdata:[
					{
						title:"高效涨粉",
						desc:'抽奖可设置为只限订阅品牌主页的粉丝参与，能快速积累精准粉丝',
						img:'https://fission-com.oss-cn-beijing.aliyuncs.com/rg-static/image/brand/21313.png',
						bgcolor:"#fff4eb",
						textcolor:"#a16d3c",
					},
					{
						title:"品牌介绍",
						desc:'主页内可以上传门店和商品信息，能更好地宣传品牌，建设用户对品牌的认知',
						img:'https://fission-com.oss-cn-beijing.aliyuncs.com/rg-static/image/brand/223333333.png',
						bgcolor:"#e6f4eb",
						textcolor:"#2e997a",
					},
					{
						title:"主页认证",
						desc:'通过主页认证，获得专属的认证标志，有助于品牌宣传，提升用户的信任感，促进客户下单购买',
						img:'https://fission-com.oss-cn-beijing.aliyuncs.com/rg-static/image/brand/z4435aaadsd.png',
						bgcolor:"#ebf6ff",
						textcolor:"#2b5f8a",
					},
					{
						title:"抽奖展示",
						desc:'通过展示正在进行抽奖，提升用户信任感和参与抽奖的积极性，从而吸引更多精准粉丝关注您的抽奖主页',
						img:'https://fission-com.oss-cn-beijing.aliyuncs.com/rg-static/image/brand/wqqq.png',
						bgcolor:"#fff0f0",
						textcolor:"#b5433d",
					}
				]
			}
		},
		methods:{
			gotoOpening(){
				//判断是否需要登陆
				if(this.$Logintip()){
					this.$Userlogin()
					return
				} 
				uni.navigateTo({
					url:"/pages/brand/brand"
				})
			}
		}
	}
	
</script>

<style lang="scss">

	.highlights{
		width: 88%;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		font-size: 38rpx;
		font-weight: bold;
		color: #000;
		margin: 20rpx auto;
		margin-top: 40rpx;
	}
	.auth-item{
		width: 80%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 20rpx auto;
		border-radius: 20rpx;
		padding: 30rpx;
		.preview{
			background-color: #e6e6e6;
		
			display: flex;
			align-items: center;
			justify-content: center;
			margin-right: 20rpx;
			image{
				width: 220rpx;
				height: 200rpx;
			}
		}
		.content{
			display: flex;
			justify-content: center;
			align-items:  flex-start;
			flex-direction: column;
			.title{
				font-size: 38rpx;
				font-weight: bold;
				margin-bottom: 10rpx;
			}
			.desc{
				font-size: 25rpx;
			}
		}
	}
	.bottom{
		background-color: #fff;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		position: fixed;
		padding: 30rpx 0;
		border-top: 1rpx solid #f4f4f4;
		left: 0;
		bottom: 0;
		.button{
			width: 90%;
			border-radius: 50rpx;
			color: #fff;
			background-color: $uni-color-primary;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 28rpx;
			padding: 25rpx 0;
		
		}
	}
	
</style>
